Ext.ns('ru.proburo.oms.order.entities');

/**
 * ru.proburo.oms.order.entities.Order
 * @extends Ext.data.Record
 */
ru.proburo.oms.order.entities.Order = Ext.data.Record.create([
	{name: 'id',			type: 'int'},
	{name: 'customer_id',   type: 'string'},
    {name: 'department_id', type: 'int'},
	{name: 'user_id',       type: 'int'},
	{name: 'contact_person',type: 'string'},
	{name: 'phone',         type: 'string'},
	{name: 'address',       type: 'string'},
	{name: 'comments',      type: 'string'},
    {name: 'creation_date', type: 'date', dateFormat: 'Y-m-d H:i:s'},
    {name: 'modified_date', type: 'date', dateFormat: 'Y-m-d H:i:s'},
    {name: 'delivery_date', type: 'date', dateFormat: 'Y-m-d H:i:s'},
	{name: 'submit_date',   type: 'date', dateFormat: 'Y-m-d H:i:s'},
	{name: 'summ',          type: 'float'},
	{name: 'status',        type: 'int'},
	{name: 'foreign_id',    type: 'string'},
    {name: 'online_id',     type: 'int'}, //AIR only
    
	{name: 'department',      type: 'string'},
	{name: 'customer',        type: 'string'},
	{name: 'sales_direction', type: 'string'},
	{name: 'warehouse',       type: 'string'},
    
	{name: 'checkbox',        type: 'string'} //Sync only
]);